<?php 
include TMPL_PATH.'/public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>站群列表</em></a><span>|</span>
        <a href='<?php echo U('cluster/cluster_add');?>' ><em>添加子站</em></a>
    </div>
</div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th align="center" width="50">apiId</th>
            <th align="center" width="150">apiKey</th>
            <th align='center' width="150">联系人</th>
            <th align='center' width="150">联系方式</th>
            <th align='center' width="150">公司名称</th>
            <th align='center' width="150">注册日期</th>
            <th align='center' width="50">状态</th>
						<th >管理操作</th>
            </tr>
        </thead>
     <tbody>
   <?php 
   	if(isset($clusterList) && $clusterList):
   		foreach ($clusterList as $v):
   ?>
			<tr>
					<td align="center"><?php echo $v['id']?></td>
					<td align="center"><?php echo $v['apiKey']?></td>
					<td align='center'><?php echo $v['username'];?></td>
					<td align='center'><?php echo $v['phone'] ? $v['phone'] : null; echo $v['mobile'] ? ($v['phone'] ? ' <br/> ' : null). $v['mobile'] : null;?></td>
					<td align='center'><?php echo $v['company_name'];?></td>
					<td align='center'><?php echo $v['reg_time']>0 ? date('Y-m-d H:i:s',$v['reg_time']) : null;?></td>
					<td align="center"><?php if($v['enabled']==1){?><font color="red">√</font><?php }else{?><font color="blue">×</font><?php }?></td>
					<td align='center'> 
					<a href="<?php echo U('cluster/cluster_edit', 'cid='.$v['id']);?>">修改</a>&nbsp;&nbsp;|&nbsp;&nbsp;
			<a href="javascript:confirmurl('<?php echo U('cluster/cluster_delete', 'cid='.$v['id']);?>','确认要删除吗？')">删除</a>

					</td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
    </table>
  <div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>